<script setup>
import { onUnmounted } from "vue"
import eventBus from "@/utils/eventBus.js"

eventBus.on('testMitt', (params) => {
  console.log('testMitt：', params);
})

onUnmounted(() => {
  eventBus.off('testMitt')
})
</script>

<template>
  <div class="the-right">右侧</div>
</template>

<style lang="scss" scoped>
.the-right {
  width: 300px;
  height: 750px;
  background-color: aquamarine;
}
</style>